<openerp>
<data>

    <record model="ir.ui.view" id="view_switch_supplier_refund_no">
        <field name="name">view.switch.supplier.refund.no</field>
        <field name="model">switch.supplier.refund.no</field>
		<field name="type">form</field>
        <field name="arch" type="xml">
        	<form string="Switch Supplier Refund No">
				<group>
					<field name="supp_refund1" domain="[('state','in',('open','paid','cancel')),('type','=','in_refund')]"/>
					<field name="supp_refund2" domain="[('state','in',('open','paid','cancel')),('type','=','in_refund')]"/>
				</group>
				<footer>
					<button name="switch_no" string="Switch Numbering" type="object" class="oe_highlight" default_focus="1" icon="gtk-go-forward"/>
                    or
                    <button string="Cancel" class="oe_link" special="cancel"/>
				</footer>
			</form>
        </field>
    </record>
    
    <record id="action_view_switch_supplier_refund_no" model="ir.actions.act_window">
		<field name="name">Supplier Refund No</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">switch.supplier.refund.no</field>
		<field name="view_type">form</field>
		<field name="view_mode">form</field>
		<field name="target">new</field>
		<field name="help">This menu for switching supplier refund no.</field>
	</record>
    
    <menuitem action="action_view_switch_supplier_refund_no"
            id="menu_switching_supp_refund_number"
            parent="menu_finance_switch_no" 
            sequence="1"/>     
</data>
</openerp>
